#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc ,char *argv[]){

if(argc!=2)exit(1);

int fd =open(argv[1],O_RDONLY);


dup2(fd,0);
close(fd);


while(1){

 char buffer[64];
       if(!fgets(buffer, sizeof(buffer), stdin))break;
printf("%s",buffer);

}



return 0;

}